Learn R Programming

irt (version 0.1.1)

[[<-,Itempool,numeric,missing-method: Set the elements of an Itempool objects.

Description

Set the elements of an Itempool objects.

Usage

# S4 method for Itempool,numeric,missing
[[(x, i, j) <- value

Arguments

x

Item-class object from which to extract element(s) or in which to replace element(s).

i

indices specifying elements to extract or replace.

j

This will not be used in Itempool-class objects.

value

An Item-class object.

...

Additional parameters to be passed to the function.

Value

An Itempool-class object with elements from Item-class class.

Examples

Run this code
# NOT RUN {
item1 <- item(a = 1.12, b = -2.1, c = 0.28)
item2 <- item(a = 2, b = 3.2, c = 0.21)
ip <- c(item1, item2)
item3 <- item(a = 1, b = -.2, c = 0.4)
ip[[2]] <- item3
# }

Run the code above in your browser using DataLab